package com.lhj.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lhj.reggie.common.R;
import com.lhj.reggie.dto.DishDto;
import com.lhj.reggie.entity.Dish;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface DishService extends IService<Dish> {

    public R<String> savewithFlavor( DishDto dishDto);

    public R<Page> page(int page, int pageSize, String name);

    public DishDto getbyidWithFlavor( Long id);

    public R<String> updatewithFlavor( DishDto dishDto);

    public R<List<DishDto>> list(Dish dish);


}
